package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.Dot;
import com.example.mybatisplus.model.domain.Indiscipline;
import com.example.mybatisplus.model.domain.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybatisplus.model.dto.StudentForm;
import com.example.mybatisplus.model.dto.StudentStudyForm;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zzy
 * @since 2024-06-24
 */
public interface StudentMapper extends BaseMapper<Student> {

    List<StudentForm> selectByNameAndAccount(Dot dot);

    List<Student> listByAccounts(List<String> accountList);

    List<Student> selectStudentByCollegeId(Long id);

    List<Student> selectStudentByCollegeIdAndMajorId(Long collegeID, Long majorID);

    List<Student> selectStudentByCollegeIdAndMajorIdAndClassId(Dot dot);

    List<Student> handSelectStudentByBuilding(Long areaID, Long buildingID, Long roomID);

    List<Student> selectStudentByCollegeName(Dot dot);

    List<Student> selectStudentByNames(Dot dot);

    StudentStudyForm selectMajorNameAndCollegeNameByStudentID(Long studentID);

    List<Student> selectStudentByAll(Dot dot);

    List<Indiscipline> getIndisciplineTable(Dot dot);
}
